<script setup>
import {ref} from "vue";
const dataList = ref(["首页","用户管理","权限管理","个人中心"])
</script>

<template>
  <ul >
    <li v-for="data in dataList">
      {{data}}}
    </li>
  </ul>
</template>

<style scoped>
div{
  width: 100px;
}
li{
  padding: 10px;
  text-align: center;
}

</style>